package com.guli.gulimall.product;

import com.guli.gulimall.product.ProductApp;
import com.guli.gulimall.product.dao.SkuInfoDao;
import com.guli.gulimall.product.entity.SkuInfoEntity;
import com.guli.gulimall.product.service.SkuInfoService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * @author: 朱财艺
 * @date : 2022/01/14
 * @Description:
 */
public class ThradTest1 implements Runnable{

    @Autowired
    private SkuInfoDao skuInfoDao;

    @Override
    public void run() {

        System.out.println("开始查询Sku数据");
        try {
            Thread.sleep(3000);
            System.out.println(Thread.currentThread().getId()+"线程ID");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("查询结束");

    }
}
